import {formatSeconds} from '../components/date.js';
export const editInlineAndCellColumn = [
	{
        title: '排名',
        type: 'index',
        width: 80,
        align: 'center'
    },
    {
        title: '车队',
        align: 'center',
        key: 'teamName',
        islink:true
    },
    {
        title: '高架时间',
        align: 'center',
        key: 'stadium2Time',
        render: function (h, params) {  
        	if(this.row.stadium2Time.isEmpty){
        		return ""
        	}else{
        		return h('div',   
            	formatSeconds(this.row.stadium2Time)
            );
        	}
        
        }  
    },
    {
        title: '高架成绩',
        align: 'center',
        key: 'stadium2Score',
        render:function(){
        	if(this.row.stadium2Score.isEmpty){
        		return ""
        	}else{
        		return this.row.stadium2Score +"分"
        	}
        	
        }
    },
     {
        title: '城乡时间',
        align: 'center',
        key: 'stadium1Time',
        render: function (h, params) {  
           if(this.row.stadium1Time.isEmpty){
        		return ""
        	}else{
        		return h('div',   
            	formatSeconds(this.row.stadium1Time)
            );
        	}
        }  
    },
    {
        title: '城乡成绩',
        align: 'center',
        key: 'stadium1Score',
        render:function(){
        	if(this.row.stadium1Score.isEmpty){
        		return ""
        	}else{
        		return this.row.stadium1Score +"分"
        	}
        	
        }
    },
     {
        title: '总成绩',
        align: 'center',
        key: 'totalScore',
        render:function(){
        	return this.row.totalScore +"分"
        }
    }
    
];

const tableData = {
    editInlineAndCellColumn: editInlineAndCellColumn,
};


export default tableData;
